package com.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Bookinformation entity. @author MyEclipse Persistence Tools
 */

public class Bookinformation implements java.io.Serializable {

	// Fields

	private Integer bookCode;
	private Bookbase bookbase;
	private Timestamp bookInTime;
	private String bookState;
	private String ISBN;
	public String getISBN() {
		return ISBN;
	}

	public void setISBN(String iSBN) {
		ISBN = iSBN;
	}

	private Set cancels = new HashSet(0);
	private Set backs = new HashSet(0);
	private Set fines = new HashSet(0);
	private Set losses = new HashSet(0);
	private Set boorows = new HashSet(0);

	// Constructors

	/** default constructor */
	public Bookinformation() {
	}
    public Bookinformation(Integer bookCode) {
    	this.bookCode = bookCode;
    }
	/** minimal constructor */
	public Bookinformation(Integer bookCode ,String ISBN, Timestamp bookInTime,
			String bookState) {
        this.bookCode = bookCode;
		this.bookInTime = bookInTime;
		this.bookState = bookState;
	}
	public Bookinformation(Bookbase bookbase, Timestamp bookInTime,
			String bookState) {
		this.bookbase = bookbase;
		this.bookInTime = bookInTime;
		this.bookState = bookState;
	}

	/** full constructor */
	public Bookinformation(Bookbase bookbase, Timestamp bookInTime,
			String bookState, Set cancels, Set backs, Set fines, Set losses,
			Set boorows) {
		this.bookbase = bookbase;
		this.bookInTime = bookInTime;
		this.bookState = bookState;
		this.cancels = cancels;
		this.backs = backs;
		this.fines = fines;
		this.losses = losses;
		this.boorows = boorows;
	}

	// Property accessors

	public Integer getBookCode() {
		return this.bookCode;
	}

	public void setBookCode(Integer bookCode) {
		this.bookCode = bookCode;
	}

	public Bookbase getBookbase() {
		return this.bookbase;
	}

	public void setBookbase(Bookbase bookbase) {
		this.bookbase = bookbase;
	}

	public Timestamp getBookInTime() {
		return this.bookInTime;
	}

	public void setBookInTime(Timestamp bookInTime) {
		this.bookInTime = bookInTime;
	}

	public String getBookState() {
		return this.bookState;
	}

	public void setBookState(String bookState) {
		this.bookState = bookState;
	}

	public Set getCancels() {
		return this.cancels;
	}

	public void setCancels(Set cancels) {
		this.cancels = cancels;
	}

	public Set getBacks() {
		return this.backs;
	}

	public void setBacks(Set backs) {
		this.backs = backs;
	}

	public Set getFines() {
		return this.fines;
	}

	public void setFines(Set fines) {
		this.fines = fines;
	}

	public Set getLosses() {
		return this.losses;
	}

	public void setLosses(Set losses) {
		this.losses = losses;
	}

	public Set getBoorows() {
		return this.boorows;
	}

	public void setBoorows(Set boorows) {
		this.boorows = boorows;
	}

}